package com.c.pojo.enums;

/**
 * @author bysun
 */
public enum ResultEnum {
    //未知错误
    UNKNOWN_ERROR(300, "未知错误"),
    //请求成功
    SUCCESS(0, "请求成功"),
    //默认错误
    DEFAULT_ERROR(1001, "系统错误");

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
